import request from '@/utils/request'
import Vue from 'vue'

// 获取店铺列表
export const queryShopList = data => {
    return request({
        url: Vue.prototype.$api.shop.index,
        method: 'post',
        data,
    })
}
// 获取店铺列表
export const getShopList = () => {
    return request({
        url: Vue.prototype.$api.shop.getShopList,
        method: 'post',
    })
}

export const getSiteList = () => {
    return request({
        url: Vue.prototype.$api.shop.getSiteList,
        method: 'post',
    })
}
export const getSalesmanList = () => {
    return request({
        url: Vue.prototype.$api.shop.salesmanList,
        method: 'post',
    })
}
export const editShop = data => {
    return request({
        url: Vue.prototype.$api.shop.edit,
        method: 'post',
        data,
    })
}
export const addShop = data => {
    return request({
        url: Vue.prototype.$api.shop.add,
        method: 'post',
        data,
    })
}

export const queryAscriptionList = data => {
    return request({
        url: Vue.prototype.$api.shop.ascriptionList,
        method: 'post',
        data,
    })
}
export const ascriptionAdd = data => {
    return request({
        url: Vue.prototype.$api.shop.ascriptionAdd,
        method: 'post',
        data,
    })
}
export const ascriptionEdit = data => {
    return request({
        url: Vue.prototype.$api.shop.ascriptionEdit,
        method: 'post',
        data,
    })
}
export const queryMonthlyProfitList = data => {
    return request({
        url: Vue.prototype.$api.shop.queryMonthlyProfitList,
        method: 'post',
        data,
    })
}
export const exportMonthlyProfitList = data => {
    return request({
        url: Vue.prototype.$api.shop.exportMonthlyProfitList,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const queryMonthlyPersonalList = data => {
    return request({
        url: Vue.prototype.$api.shop.queryMonthlyPersonalList,
        method: 'post',
        data,
    })
}
export const exportMonthlyPersonalList = data => {
    return request({
        url: Vue.prototype.$api.shop.exportMonthlyPersonalList,
        method: 'post',
        data,
        responseType: 'blob',
    })
}
export const exportMonthlyPersonalInfo = data => {
    return request({
        url: Vue.prototype.$api.shop.exportMonthlyPersonalInfo,
        method: 'post',
        data,
        responseType: 'blob',
    })
}

export const queryPreparationWork = data => {
    return request({
        url: Vue.prototype.$api.shop.queryPreparationWork,
        method: 'post',
        data,
    })
}
export const queryLogisticsBill = data => {
    return request({
        url: Vue.prototype.$api.shop.queryLogisticsBill,
        method: 'post',
        data,
    })
}
export const queryProcurementBill = data => {
    return request({
        url: Vue.prototype.$api.shop.queryProcurementBill,
        method: 'post',
        data,
    })
}
export const queryDisputeCost = data => {
    return request({
        url: Vue.prototype.$api.shop.queryDisputeCost,
        method: 'post',
        data,
    })
}
export const queryOrderTagMatching = data => {
    return request({
        url: Vue.prototype.$api.shop.queryOrderTagMatching,
        method: 'post',
        data,
    })
}
export const getOnSalesList = data => {
    return request({
        url: Vue.prototype.$api.shop.getOnSalesList,
        method: 'post',
        data,
    })
}
export const getOnSaleList = data => {
    return request({
        url: Vue.prototype.$api.shop.getOnSaleList,
        method: 'post',
        data,
    })
}
